package cn.pkubangbang.demo.democontact.entity;

import java.util.List;

/**
 * simple wrapper over pageInfo and content
 * @Author: zhangzhenbang@k2data.com.cn
 * @Date: 2018-09-06 14:42
 */
public class Page<T> {

    private PageInfo pageInfo;

    private List<T> content;

    public Page() {
    }

    public Page(PageInfo pageInfo, List<T> content) {
        this.pageInfo = pageInfo;
        this.content = content;
    }

    public PageInfo getPageInfo() {
        return pageInfo;
    }

    public void setPageInfo(PageInfo pageInfo) {
        this.pageInfo = pageInfo;
    }

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Page{");
        sb.append("pageInfo=").append(pageInfo);
        sb.append(", content=").append(content);
        sb.append('}');
        return sb.toString();
    }
}
